package com.bite.blog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
/*日期工具类
* 将date类型转成string类型*/
public class DateUtils {

    public static String format(Date date){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(date);
    }

}
